package top.lyjwn.ajui.widget.list;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.annotation.Nullable;
import top.lyjwn.ajui.R;

/**
 * 列表的结尾
 *
 * @author luoyujie
 */
public class FooterView extends LinearLayout {

    private TextView foot_view_text;

    public FooterView(Context context) {
        this(context, null);
    }

    public FooterView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        View view = LayoutInflater.from(getContext()).inflate(R.layout.widget_list_footer_view, this);
        foot_view_text = view.findViewById(R.id.foot_view_text);
    }

    public void setText(String text) {
        foot_view_text.setText(text);
    }
}
